/**
 * @file letter_shell_cmd.c
 * @author your name (you@domain.com)
 * @brief 
 * @version 0.1
 * @date 2023-05-06
 * 
 * @copyright Copyright (c) 2023
 * 
 */

// letter shell 指令
void RebootDev()
{
	delay_ms(50);
	NVIC_SystemReset();
}
SHELL_EXPORT_CMD(SHELL_CMD_PERMISSION(0)|SHELL_CMD_TYPE(SHELL_TYPE_CMD_FUNC), reboot, RebootDev, Reboot Device);

void MotorMove(t_eMoveDir eMoveDir, float fAngle, unsigned int unSpeed, float fForce, int snTime)
{
	//litefoc_move(eMoveDir, fAngle, unSpeed, fForce, snTime);
}
SHELL_EXPORT_CMD(SHELL_CMD_PERMISSION(0)|SHELL_CMD_TYPE(SHELL_TYPE_CMD_FUNC), move, MotorMove, Motor move);

SHELL_EXPORT_VAR(SHELL_CMD_PERMISSION(0)|SHELL_CMD_TYPE(SHELL_TYPE_VAR_INT), angle, &g_snAngle, Angle value);
SHELL_EXPORT_VAR(SHELL_CMD_PERMISSION(0)|SHELL_CMD_TYPE(SHELL_TYPE_VAR_CHAR), clockwise, &g_ucClockwise, clockwise);
SHELL_EXPORT_VAR(SHELL_CMD_PERMISSION(0)|SHELL_CMD_TYPE(SHELL_TYPE_VAR_SHORT), force, &g_usForce, force value);
